/**
 *
 */
package com.dhcc.frame.collection.queue;

import java.util.ArrayDeque;
import java.util.Queue;

import org.junit.Test;

import com.google.common.base.Strings;

/**
 * @author 谢进军
 *
 */
public class ArrayDequeTest {

	@Test
	public void testQueue(){
		Queue<String> taskQueue = new ArrayDeque<String>();
		taskQueue.offer( "1" );
		taskQueue.offer( "2" );

//		String nextTask = taskQueue.poll();
		for (int i = 0; i < taskQueue.size(); i++) {
//			String nextTask = taskQueue.poll();
			System.out.println( "poll" + taskQueue.poll() );
//			System.out.println( "peek:" + taskQueue.ge );
		}

	}
}
